const validator = require('./errorcallback')
const {body} = require('express-validator')
exports.createVideoValidator = validator([
    body('title').notEmpty().withMessage('视频标题不能为空').bail()
    .isLength({max:20}).withMessage('标题长度不能超过20').bail(),



    body('vodid').notEmpty().withMessage('视频id不能为空').bail()
])